package com.dc.project.gen.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dc.common.validated.DeleteGroup;
import com.dc.common.validated.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 编码规程生成表(GenCode)实体类
 *
 * @author zhuangcy
 * @since 2021-06-19 16:00:02
 */
@TableName("gen_code")
@Data
@ApiModel(value = "编码规程生成表")
public class GenCode implements Serializable {
    private static final long serialVersionUID = -80965020430570489L;
    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class, DeleteGroup.class})
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "id")
    private Integer id;
    /**
     * 表名
     */
    @TableField(value = "table_name")
    @ApiModelProperty(name = "tableName", value = "表名")
    private String tableName;
    /**
     * 编码序号
     */
    @TableField(value = "code")
    @ApiModelProperty(name = "code", value = "编码序号")
    private Integer code;
    /**
     * 生成时间
     */
    @TableField(value = "gen_date")
    @ApiModelProperty(name = "genDate", value = "生成时间")
    private Date genDate;
    /**
     * 创建者id
     */
    @TableField(value = "created_id", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdId", value = "创建者id")
    private Integer createdId;
    /**
     * 创建者
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdBy", value = "创建者")
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    private Date createdTime;
    /**
     * 更新者id
     */
    @TableField(value = "updated_id", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedId", value = "更新者id")
    private Integer updatedId;
    /**
     * 更新者
     */
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedBy", value = "更新者")
    private String updatedBy;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;


}